import Vue from 'vue'
import ElementUI from 'element-ui'
import VueQuillEditor from 'vue-quill-editor'

Vue.use(ElementUI)
Vue.use(VueQuillEditor)

//集成axios
import axios from 'axios'

//设置axios请求的IP和端口号
axios.defaults.withCredentials = true
axios.defaults.baseURL = "http://39.108.135.214:8899/"

//将axios绑定到Vue原型上，这样每个Vue对象中就可以直接调用this.$axios拿到axios对象了
Vue.prototype.$axios = axios

//导入样式
import 'element-ui/lib/theme-chalk/index.css'

//导入根组件
import App from './App.vue'

//导入路由对象
import router from './router/router'

new Vue({
  el: '#app',
  router, //注入到根实例，让整个应用都拥有路由功能
  render: h => h(App)
})
